var path = require('path')

module.exports = {

  entry: path.resolve(__dirname,'./src/main.js'),

  output: {
    path: path.resolve(__dirname, './dist/'),
    filename: 'build.js',
    publicPath: path.resolve(__dirname, './static/')
  },
  module: {
    loaders: [
      {
        test: /\.css$/,
        loader: 'style!css'
      },
      {
        test: /\.vue/,
        loader: 'vue'
      },
      {
        test: /\.js/,
        loader: 'babel?presets=es2015',
        exclude: /node_module/
      }
    ]
  },
  babel: {
    presets: ['es2015']
  },
  resolve: {
    extensions: ['', '.js', '.vue']
  }

}